<template>
  <view class="menu-content">
    <view class="menu-item" v-for="(item) in menus" @tap="toPage(item.url)"> 
      <view class="menu-item__fu">{{ item.text }}</view>
    </view>
  </view>
</template>

<script setup>
  import Taro, { useDidShow } from '@tarojs/taro';
  import './index.scss';
  import mock from "./homePage";
  const menus = mock.menus;
  function toPage(url) {
    Taro.navigateTo({
      url: url,
    })
  }

  useDidShow(() => console.log('onShow'))
</script>
